package org.finesys.boot.service.impl;

import lombok.RequiredArgsConstructor;
import org.finesys.common.core.module.R;
import org.finesys.system.api.service.DeptService;
import org.finesys.system.service.SysDeptService;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class DeptServiceImpl implements DeptService {
    private final SysDeptService sysDeptService;

    public R<String> getDeptAllByUserId() {
        return R.success(sysDeptService.getDeptNameByUserId());
    }

}
